package com.spzx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Schema(description = "商品的数量单位")
@TableName(value = "product_unit")
@Data
public class ProductUnit extends BaseEntity {
    @Schema(description = "单位名称")
    @NotEmpty
    @TableField(value = "name")
    private String name;
}
